home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMPkcs11.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-08  |  3.6 KB  |  102 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMPkcs11.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMPkcs11_h__
  6. #define __gen_nsIDOMPkcs11_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMPkcs11 */
  19. #define NS_IDOMPKCS11_IID_STR "9fd42950-25e7-11d4-8a7d-006008c844c3"
  20.  
  21. #define NS_IDOMPKCS11_IID \
  22.   {0x9fd42950, 0x25e7, 0x11d4, \
  23.     { 0x8a, 0x7d, 0x00, 0x60, 0x08, 0xc8, 0x44, 0xc3 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMPkcs11 : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMPKCS11_IID)
  29.  
  30.   /* long deletemodule (in DOMString moduleName); */
  31.   NS_IMETHOD Deletemodule(const nsAString & moduleName, PRInt32 *_retval) = 0;
  32.  
  33.   /* long addmodule (in DOMString moduleName, in DOMString libraryFullPath, in long cryptoMechanismFlags, in long cipherFlags); */
  34.   NS_IMETHOD Addmodule(const nsAString & moduleName, const nsAString & libraryFullPath, PRInt32 cryptoMechanismFlags, PRInt32 cipherFlags, PRInt32 *_retval) = 0;
  35.  
  36. };
  37.  
  38. /* Use this macro when declaring classes that implement this interface. */
  39. #define NS_DECL_NSIDOMPKCS11 \
  40.   NS_IMETHOD Deletemodule(const nsAString & moduleName, PRInt32 *_retval); \
  41.   NS_IMETHOD Addmodule(const nsAString & moduleName, const nsAString & libraryFullPath, PRInt32 cryptoMechanismFlags, PRInt32 cipherFlags, PRInt32 *_retval); 
  42.  
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIDOMPKCS11(_to) \
  45.   NS_IMETHOD Deletemodule(const nsAString & moduleName, PRInt32 *_retval) { return _to Deletemodule(moduleName, _retval); } \
  46.   NS_IMETHOD Addmodule(const nsAString & moduleName, const nsAString & libraryFullPath, PRInt32 cryptoMechanismFlags, PRInt32 cipherFlags, PRInt32 *_retval) { return _to Addmodule(moduleName, libraryFullPath, cryptoMechanismFlags, cipherFlags, _retval); } 
  47.  
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSIDOMPKCS11(_to) \
  50.   NS_IMETHOD Deletemodule(const nsAString & moduleName, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Deletemodule(moduleName, _retval); } \
  51.   NS_IMETHOD Addmodule(const nsAString & moduleName, const nsAString & libraryFullPath, PRInt32 cryptoMechanismFlags, PRInt32 cipherFlags, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Addmodule(moduleName, libraryFullPath, cryptoMechanismFlags, cipherFlags, _retval); } 
  52.  
  53. #if 0
  54. /* Use the code below as a template for the implementation class for this interface. */
  55.  
  56. /* Header file */
  57. class nsDOMPkcs11 : public nsIDOMPkcs11
  58. {
  59. public:
  60.   NS_DECL_ISUPPORTS
  61.   NS_DECL_NSIDOMPKCS11
  62.  
  63.   nsDOMPkcs11();
  64.  
  65. private:
  66.   ~nsDOMPkcs11();
  67.  
  68. protected:
  69.   /* additional members */
  70. };
  71.  
  72. /* Implementation file */
  73. NS_IMPL_ISUPPORTS1(nsDOMPkcs11, nsIDOMPkcs11)
  74.  
  75. nsDOMPkcs11::nsDOMPkcs11()
  76. {
  77.   /* member initializers and constructor code */
  78. }
  79.  
  80. nsDOMPkcs11::~nsDOMPkcs11()
  81. {
  82.   /* destructor code */
  83. }
  84.  
  85. /* long deletemodule (in DOMString moduleName); */
  86. NS_IMETHODIMP nsDOMPkcs11::Deletemodule(const nsAString & moduleName, PRInt32 *_retval)
  87. {
  88.     return NS_ERROR_NOT_IMPLEMENTED;
  89. }
  90.  
  91. /* long addmodule (in DOMString moduleName, in DOMString libraryFullPath, in long cryptoMechanismFlags, in long cipherFlags); */
  92. NS_IMETHODIMP nsDOMPkcs11::Addmodule(const nsAString & moduleName, const nsAString & libraryFullPath, PRInt32 cryptoMechanismFlags, PRInt32 cipherFlags, PRInt32 *_retval)
  93. {
  94.     return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96.  
  97. /* End of implementation class template. */
  98. #endif
  99.  
  100.  
  101. #endif /* __gen_nsIDOMPkcs11_h__ */
  102.